package com.sg.dto.biz.bff.common;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffConfSchemeDto
 * @使用场景
 */
@Data
public class BffConfSchemeDto implements Serializable {

    /**
     * 配置方案ID:
     */
    @ApiModelProperty("配置方案ID ")
    private String confSchemeId;

    /**
     * 配置方案标识:
     */
    @ApiModelProperty("配置方案标识")
    private String confSchemeCode;

    /**
     * 配置方案名称:
     */
    @ApiModelProperty("配置方案名称")
    private String confSchemeName;

    /**
     * 应用对象类型:
     */
    @ApiModelProperty("应用对象类型")
    private String applObjType;

    /**
     * 方案类型编码:
     */
    @ApiModelProperty("方案类型编码")
    private String confSchemeTypeCode;

    /**
     * 是否必选方案:
     */
    @ApiModelProperty("是否必选方案")
    private String isMandatory;

    /**
     * 授权类型:
     */
    @ApiModelProperty("授权类型")
    private String authType;
    /**
     * 生命周期状态:
     */
    @ApiModelProperty("生命周期状态")
    private String subjectLifeCycle;
    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operationTime;
    /**
     * 个人账号ID:
     */
    @ApiModelProperty("个人账号ID")
    private String userId;
    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;
    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;
    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;
    /**
     * 是否初始方案:
     */
    @ApiModelProperty("是否初始方案")
    private String isInitialScheme;
    /**
     * 是否存档
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffConfSchemeDto that = (BffConfSchemeDto) o;
        return confSchemeId == that.confSchemeId && confSchemeCode == that.confSchemeCode && confSchemeName == that.confSchemeName && applObjType == that.applObjType && confSchemeTypeCode == that.confSchemeTypeCode && isMandatory == that.isMandatory && authType == that.authType && subjectLifeCycle == that.subjectLifeCycle && operationInductionId == that.operationInductionId && operationTime == that.operationTime && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && isInitialScheme == that.isInitialScheme && isArchive == that.isArchive;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), confSchemeId, confSchemeCode, confSchemeName, applObjType, confSchemeTypeCode, isMandatory, authType, subjectLifeCycle, operationInductionId, operationTime, userId, userFace, idCardName, nickName, isInitialScheme, isArchive);
    }

}
